package com.njwb.io;

/**
 * Description: 类的描述
 * Author: yuandeyin@itany.com
 * Date: 2025-08-06 10:05
 * Version: 1.0
 */
public abstract class ShapeDecorator implements Shape{
    private Shape shape;//被包装的对象  可能是圆，也有可能是矩形

    public ShapeDecorator(Shape shape){
       this.shape = shape;
    }

    @Override
    public void draw() {
        shape.draw();
    }
}
